﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BIStudio.Framework.Utils
{
    /// <summary>
    /// Content-typeHTTP 标头的值
    /// </summary>
    [ALEnumDescription("Content-typeHTTP 标头的值")]
    public enum ContentTypeEnum
    {
        /// <summary>
        /// 浏览器的原生 form 表单
        /// </summary>
        [ALEnumDescription("application/x-www-form-urlencoded", 1)]
        AXWFFormUrlencoded = 1,
        /// <summary>
        ///  我们使用表单上传文件时，必须让 form 的 enctyped 等于这个值
        /// </summary>
        [ALEnumDescription("multipart/form-data", 2)]
        MultipartFormData = 2,
        /// <summary>
        /// 用来告诉服务端消息主体是序列化后的 JSON 字符串
        /// </summary>
        [ALEnumDescription("application/json", 3)]
        ApplicationJson = 3,
        /// <summary>
        /// XML-RPC（XML Remote Procedure Call）。它是一种使用 HTTP 作为传输协议，XML 作为编码方式的远程调用规范
        /// </summary>
        [ALEnumDescription("text/xml", 4)]
        TextXml = 4

    }
    /// <summary>
    /// 字符串编码格式
    /// </summary>
    [ALEnumDescription("字符串编码格式")]
    public enum StrEncodingEnum
    {
        /// <summary>
        /// ASCII（7 位）字符集的编码
        /// </summary>
        [ALEnumDescription("ASCII", 1)]
        ASCII = 1,
        /// <summary>
        ///  Big-Endian 字节顺序的 UTF-16 格式的编码
        /// </summary>
        [ALEnumDescription("UTF-16", 2)]
        BigEndianUnicode = 2,
        /// <summary>
        /// 操作系统的当前 ANSI 代码页的编码
        /// </summary>
        [ALEnumDescription("Default", 3)]
        Default = 3,
        /// <summary>
        /// Little-Endian 字节顺序的 UTF-16 格式的编码
        /// </summary>
        [ALEnumDescription("Unicode", 4)]
        Unicode = 4,
        /// <summary>
        /// Little-Endian 字节顺序的 UTF-32 格式的编码
        /// </summary>
        [ALEnumDescription("UTF-32", 5)]
        UTF32 = 5,
        /// <summary>
        ///  UTF-7 格式的编码
        /// </summary>
        [ALEnumDescription("UTF-7", 6)]
        UTF7 = 6,
        /// <summary>
        ///  UTF-8 格式的编码
        /// </summary>
        [ALEnumDescription("UTF-8", 7)]
        UTF8 = 7

    }
}
